package org.linlinjava.litemall.db.service;

import org.linlinjava.litemall.db.dao.LitemallShopMapper;
import org.linlinjava.litemall.db.domain.LitemallAdmin;
import org.linlinjava.litemall.db.domain.LitemallShop;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;

@Service
public class LitemallShopService {

    @Resource
    private LitemallShopMapper herbMapper;

    public void insertSelective(LitemallShop ShopExample) {herbMapper.insertSelective(ShopExample);}

    public int updateById(LitemallShop ShopExample) {
        ShopExample.setUpdateTime(LocalDateTime.now());
        return herbMapper.updateByPrimaryKeySelective(ShopExample);
    }

    public LitemallShop findById(Integer id) {
        return herbMapper.selectByPrimaryKeySelective(id);
    }



}
